'\" t
.TH "SYSTEMD\&.NET\-NAMING\-SCHEME" "7" "" "systemd 254" "systemd.net-naming-scheme"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
systemd.net-naming-scheme \- Network device naming schemes
.SH "DESCRIPTION"
.PP
Network interfaces names and MAC addresses may be generated based on certain stable interface attributes\&. This is possible when there is enough information about the device to generate those attributes and the use of this information is configured\&. This page describes interface naming, i\&.e\&. what possible names may be generated\&. Those names are generated by the
\fBsystemd-udevd.service\fR(8)
builtin
\fBnet_id\fR
and exported as udev properties (\fIID_NET_NAME_ONBOARD=\fR,
\fIID_NET_LABEL_ONBOARD=\fR,
\fIID_NET_NAME_PATH=\fR,
\fIID_NET_NAME_SLOT=\fR)\&.
.PP
Names and MAC addresses are derived from various stable device metadata attributes\&. Newer versions of udev take more of these attributes into account, improving (and thus possibly changing) the names and addresses used for the same devices\&. Different versions of those generation rules are called "naming schemes"\&. The default naming scheme is chosen at compilation time\&. Usually this will be the latest implemented version, but it is also possible to set one of the older versions to preserve compatibility\&. This may be useful for example for distributions, which may introduce new versions of systemd in stable releases without changing the naming scheme\&. The naming scheme may also be overridden using the
\fInet\&.naming\-scheme=\fR
kernel command line switch, see
\fBsystemd-udevd.service\fR(8)\&. Available naming schemes are described below\&.
.PP
After the udev properties have been generated, appropriate udev rules may be used to actually rename devices based on those properties\&. See the description of
\fINamePolicy=\fR
and
\fIMACAddressPolicy=\fR
in
\fBsystemd.link\fR(5)\&.
.PP
Note that while the concept of network interface naming schemes is primarily relevant in the context of
systemd\-udevd\&.service, the
\fBsystemd-nspawn\fR(1)
container manager also takes it into account when naming network interfaces, see below\&.
.SH "POLICIES"
.PP
All names start with a two\-character prefix that signifies the interface type\&.
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&1.\ \&Two character prefixes based on the type of interface
.TS
allbox tab(:);
lB lB.
T{
Prefix
T}:T{
Description
T}
.T&
l l
l l
l l
l l
l l.
T{
\fBen\fR
T}:T{
Ethernet
T}
T{
\fBib\fR
T}:T{
InfiniBand
T}
T{
\fBsl\fR
T}:T{
Serial line IP (slip)
T}
T{
\fBwl\fR
T}:T{
Wireless local area network (WLAN)
T}
T{
\fBww\fR
T}:T{
Wireless wide area network (WWAN)
T}
.TE
.sp 1
.PP
The udev
\fBnet_id\fR
builtin exports the following udev device properties:
.PP
\fIID_NET_NAME_ONBOARD=\fR\fI\fIprefix\fR\fR\fI\fBo\fR\fR\fI\fInumber\fR\fR, \fIID_NET_NAME_ONBOARD=\fR\fI\fIprefix\fR\fR\fI\fBd\fR\fR\fI\fInumber\fR\fR
.RS 4
This name is set based on the numeric ordering information given by the firmware for on\-board devices\&. Different schemes are used depending on the firmware type, as described in the table below\&.
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&2.\ \&On\-board naming schemes
.TS
allbox tab(:);
lB lB.
T{
Format
T}:T{
Description
T}
.T&
l l
l l.
T{
\fIprefix\fR\fBo\fR\fInumber\fR
T}:T{
PCI on\-board index
T}
T{
\fIprefix\fR\fBd\fR\fInumber\fR
T}:T{
Devicetree alias index
T}
.TE
.sp 1
.RE
.PP
\fIID_NET_LABEL_ONBOARD=\fR\fI\fIprefix\fR\fR\fI \fR\fI\fIlabel\fR\fR
.RS 4
This property is set based on textual label given by the firmware for on\-board devices\&. The name consists of the prefix concatenated with the label\&. This is only available for PCI devices\&.
.RE
.PP
\fIID_NET_NAME_MAC=\fR\fI\fIprefix\fR\fR\fI\fBx\fR\fR\fI\fIAABBCCDDEEFF\fR\fR
.RS 4
This name consists of the prefix, letter
\fBx\fR, and 12 hexadecimal digits of the MAC address\&. It is available if the device has a fixed MAC address\&. Because this name is based on an attribute of the card itself, it remains "stable" when the device is moved (even between machines), but will change when the hardware is replaced\&.
.RE
.PP
\fIID_NET_NAME_SLOT=\fR\fI\fIprefix\fR\fR\fI[\fR\fI\fBP\fR\fR\fI\fIdomain\fR\fR\fI]\fR\fI\fBs\fR\fR\fI\fIslot\fR\fR\fI[\fR\fI\fBf\fR\fR\fI\fIfunction\fR\fR\fI][\fR\fI\fBn\fR\fR\fI\fIport_name\fR\fR\fI|\fR\fI\fBd\fR\fR\fI\fIdev_port\fR\fR\fI]\fR, \fIID_NET_NAME_SLOT=\fR\fI\fIprefix\fR\fR\fI\fBv\fR\fR\fI\fIslot\fR\fR, \fIID_NET_NAME_SLOT=\fR\fI\fIprefix\fR\fR\fI\fBx\fR\fR\fI\fIslot\fR\fR, \fIID_NET_NAME_SLOT=\fR\fI\fIprefix\fR\fR\fI[\fR\fI\fBP\fR\fR\fI\fIdomain\fR\fR\fI]\fR\fI\fBs\fR\fR\fI\fIslot\fR\fR\fI[\fR\fI\fBf\fR\fR\fI\fIfunction\fR\fR\fI][\fR\fI\fBn\fR\fR\fI\fIport_name\fR\fR\fI|\fR\fI\fBd\fR\fR\fI\fIdev_port\fR\fR\fI]\fR\fI\fBb\fR\fR\fI\fInumber\fR\fR, \fIID_NET_NAME_SLOT=\fR\fI\fIprefix\fR\fR\fI[\fR\fI\fBP\fR\fR\fI\fIdomain\fR\fR\fI]\fR\fI\fBs\fR\fR\fI\fIslot\fR\fR\fI[\fR\fI\fBf\fR\fR\fI\fIfunction\fR\fR\fI][\fR\fI\fBn\fR\fR\fI\fIport_name\fR\fR\fI|\fR\fI\fBd\fR\fR\fI\fIdev_port\fR\fR\fI]\fR\fI\fBu\fR\fR\fI\fIport\fR\fR\fI\&...[\fR\fI\fBc\fR\fR\fI\fIconfig\fR\fR\fI][\fR\fI\fBi\fR\fR\fI\fIinterface\fR\fR\fI]\fR, \fIID_NET_NAME_SLOT=\fR\fI\fIprefix\fR\fR\fI[\fR\fI\fBP\fR\fR\fI\fIdomain\fR\fR\fI]\fR\fI\fBs\fR\fR\fI\fIslot\fR\fR\fI[\fR\fI\fBf\fR\fR\fI\fIfunction\fR\fR\fI][\fR\fI\fBn\fR\fR\fI\fIport_name\fR\fR\fI|\fR\fI\fBd\fR\fR\fI\fIdev_port\fR\fR\fI]\fR\fI\fBv\fR\fR\fI\fIslot\fR\fR, \fIID_NET_NAME_SLOT=\fR\fI\fIprefix\fR\fR\fI[\fR\fI\fBP\fR\fR\fI\fIdomain\fR\fR\fI]\fR\fI\fBs\fR\fR\fI\fIslot\fR\fR\fI[\fR\fI\fBf\fR\fR\fI\fIfunction\fR\fR\fI][\fR\fI\fBn\fR\fR\fI\fIport_name\fR\fR\fI|\fR\fI\fBd\fR\fR\fI\fIdev_port\fR\fR\fI]\fR\fI\fBr\fR\fR\fI\fIslot\fR\fR
.RS 4
This property describes the slot position\&. Different schemes are used depending on the bus type, as described in the table below\&. In case of USB, BCMA, and SR\-VIO devices, the full name consists of the prefix, PCI slot identifier, and USB or BCMA or SR\-VIO slot identifier\&. The first two parts are denoted as "\&..." in the table below\&.
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&3.\ \&Slot naming schemes
.TS
allbox tab(:);
lB lB.
T{
Format
T}:T{
Description
T}
.T&
l l
l l
l l
l l
l l
l l
l l.
T{
\fIprefix\fR\ \&[\fBP\fR\fIdomain\fR]\ \&\fBs\fR\fIslot\fR\ \&[\fBf\fR\fIfunction\fR]\ \&[\fBn\fR\fIport_name\fR\ \&|\ \&\fBd\fR\fIdev_port\fR]
T}:T{
PCI slot number
T}
T{
\fIprefix\fR\ \&\fBv\fR\fIslot\fR
T}:T{
VIO slot number (IBM PowerVM)
T}
T{
\fIprefix\fR\ \&\fBX\fR\fInumber\fR
T}:T{
VIF interface number (Xen)
T}
T{
\&...\ \&\fBb\fR\fInumber\fR
T}:T{
Broadcom bus (BCMA) core number
T}
T{
\&...\ \&\fBu\fR\fIport\fR\&...\ \&[\fBc\fR\fIconfig\fR]\ \&[\fBi\fR\fIinterface\fR]
T}:T{
USB port number chain
T}
T{
\&...\ \&\fBv\fR\fIslot\fR
T}:T{
SR\-VIO slot number
T}
T{
\&...\ \&\fBr\fR\fIslot\fR
T}:T{
SR\-IOV slot number
T}
.TE
.sp 1
The PCI domain is only prepended when it is not 0\&. All multi\-function PCI devices will carry the
\fBf\fR\fB\fIfunction\fR\fR
number in the device name, including the function 0 device\&. For non\-multi\-function devices, the number is suppressed if 0\&. The port name
\fIport_name\fR
is used, or the port number
\fBd\fR\fIdev_port\fR
if the name is not known\&.
.sp
For BCMA devices, the core number is suppressed when 0\&.
.sp
For USB devices the full chain of port numbers of hubs is composed\&. If the name gets longer than the maximum number of 15 characters, the name is not exported\&. The usual USB configuration number 1 and interface number 0 values are suppressed\&.
.sp
SR\-IOV virtual devices are named based on the name of the parent interface, with a suffix of
\fBv\fR
and the virtual device number, with any leading zeros removed\&. The bus number is ignored\&.
.sp
SR\-IOV virtual device representors are named based on the name of the physical device interface, with a suffix of
\fBr\fR
and the number of the virtual device that is linked to the particular representor, with any leading zeros removed\&. The physical port name and the bus number are ignored\&.
.sp
In some configurations a parent PCI bridge of a given network controller may be associated with a slot\&. In such case we don\*(Aqt generate this device property to avoid possible naming conflicts\&.
.RE
.PP
\fIID_NET_NAME_PATH=\fR\fI\fIprefix\fR\fR\fI\fBc\fR\fR\fI\fIbus_id\fR\fR, \fIID_NET_NAME_PATH=\fR\fI\fIprefix\fR\fR\fI\fBa\fR\fR\fI\fIvendor\fR\fR\fI\fImodel\fR\fR\fI\fBi\fR\fR\fI\fIinstance\fR\fR, \fIID_NET_NAME_PATH=\fR\fI\fIprefix\fR\fR\fI\fBi\fR\fR\fI\fIaddress\fR\fR\fI\fBn\fR\fR\fI\fIport_name\fR\fR, \fIID_NET_NAME_PATH=\fR\fI\fIprefix\fR\fR\fI\fBu\fR\fR\fI\fIport\fR\fR\fI\&...\fR, \fIID_NET_NAME_PATH=\fR\fI\fIprefix\fR\fR\fI[\fR\fI\fBP\fR\fR\fI\fIdomain\fR\fR\fI]\fR\fI\fBp\fR\fR\fI\fIbus\fR\fR\fI\fBs\fR\fR\fI\fIslot\fR\fR\fI[\fR\fI\fBf\fR\fR\fI\fIfunction\fR\fR\fI][\fR\fI\fBn\fR\fR\fI\fIphys_port_name\fR\fR\fI|\fR\fI\fBd\fR\fR\fI\fIdev_port\fR\fR\fI]\fR, \fIID_NET_NAME_PATH=\fR\fI\fIprefix\fR\fR\fI[\fR\fI\fBP\fR\fR\fI\fIdomain\fR\fR\fI]\fR\fI\fBp\fR\fR\fI\fIbus\fR\fR\fI\fBs\fR\fR\fI\fIslot\fR\fR\fI[\fR\fI\fBf\fR\fR\fI\fIfunction\fR\fR\fI][\fR\fI\fBn\fR\fR\fI\fIphys_port_name\fR\fR\fI|\fR\fI\fBd\fR\fR\fI\fIdev_port\fR\fR\fI]\fR\fI\fBb\fR\fR\fI\fInumber\fR\fR, \fIID_NET_NAME_PATH=\fR\fI\fIprefix\fR\fR\fI[\fR\fI\fBP\fR\fR\fI\fIdomain\fR\fR\fI]\fR\fI\fBp\fR\fR\fI\fIbus\fR\fR\fI\fBs\fR\fR\fI\fIslot\fR\fR\fI[\fR\fI\fBf\fR\fR\fI\fIfunction\fR\fR\fI][\fR\fI\fBn\fR\fR\fI\fIphys_port_name\fR\fR\fI|\fR\fI\fBd\fR\fR\fI\fIdev_port\fR\fR\fI]\fR\fI\fBu\fR\fR\fI\fIport\fR\fR\fI\&...[\fR\fI\fBc\fR\fR\fI\fIconfig\fR\fR\fI][\fR\fI\fBi\fR\fR\fI\fIinterface\fR\fR\fI]\fR
.RS 4
This property describes the device installation location\&. Different schemes are used depending on the bus type, as described in the table below\&. For BCMA and USB devices, PCI path information must known, and the full name consists of the prefix, PCI slot identifier, and USB or BCMA location\&. The first two parts are denoted as "\&..." in the table below\&.
.sp
.it 1 an-trap
.nr an-no-space-flag 1
.nr an-break-flag 1
.br
.B Table\ \&4.\ \&Path naming schemes
.TS
allbox tab(:);
lB lB.
T{
Format
T}:T{
Description
T}
.T&
l l
l l
l l
l l
l l
l l.
T{
\fIprefix\fR\ \&\fBc\fR\fIbus_id\fR
T}:T{
CCW or grouped CCW device identifier
T}
T{
\fIprefix\fR\ \&\fBa\fR\fIvendor\fR\ \&\fImodel\fR\ \&\fBi\fR\fIinstance\fR
T}:T{
ACPI path names for ARM64 platform devices
T}
T{
\fIprefix\fR\ \&\fBi\fR\fIaddress\fR\ \&\fBn\fR\fIport_name\fR
T}:T{
Netdevsim (simulated networking device) device number and port name
T}
T{
\fIprefix\fR\ \&[\fBP\fR\fIdomain\fR]\ \&\fBp\fR\fIbus\fR\ \&\fBs\fR\fIslot\fR\ \&[\fBf\fR\fIfunction\fR]\ \&[\fBn\fR\fIphys_port_name\fR\ \&|\ \&\fBd\fR\fIdev_port\fR]
T}:T{
PCI geographical location
T}
T{
\&...\ \&\fBb\fR\fInumber\fR
T}:T{
Broadcom bus (BCMA) core number
T}
T{
\&...\ \&\fBu\fR\fIport\fR\&...\ \&[\fBc\fR\fIconfig\fR]\ \&[\fBi\fR\fIinterface\fR]
T}:T{
USB port number chain
T}
.TE
.sp 1
CCW and grouped CCW devices are found in IBM System Z mainframes\&. Any leading zeros and dots are suppressed\&.
.sp
For PCI, BCMA, and USB devices, the same rules as described above for slot naming are used\&.
.RE
.SH "HISTORY"
.PP
The following "naming schemes" have been defined (which may be chosen at system boot\-up time via the
\fInet\&.naming\-scheme=\fR
kernel command line switch, see above):
.PP
\fBv238\fR
.RS 4
This is the naming scheme that was implemented in systemd 238\&.
.RE
.PP
\fBv239\fR
.RS 4
Naming was changed for virtual network interfaces created with SR\-IOV and NPAR and for devices where the PCI network controller device does not have a slot number associated\&.
.sp
SR\-IOV virtual devices are named based on the name of the parent interface, with a suffix of
"v\fIport\fR", where
\fIport\fR
is the virtual device number\&. Previously those virtual devices were named as if completely independent\&.
.sp
The ninth and later NPAR virtual devices are named following the scheme used for the first eight NPAR partitions\&. Previously those devices were not renamed and the kernel default ("eth\fIN\fR") was used\&.
.sp
Names are also generated for PCI devices where the PCI network controller device does not have an associated slot number itself, but one of its parents does\&. Previously those devices were not renamed and the kernel default was used\&.
.RE
.PP
\fBv240\fR
.RS 4
The
"ib"
prefix and stable names for infiniband devices are introduced\&. Previously those devices were not renamed\&.
.sp
The ACPI index field (used in
\fIID_NET_NAME_ONBOARD=\fR) is now also used when 0\&.
.sp
A new naming policy
\fINamePolicy=keep\fR
was introduced\&. With this policy, if the network device name was already set by userspace, the device will not be renamed again\&. Previously, this naming policy applied implicitly, and now it must be explicitly requested\&. Effectively, this means that network devices will be renamed according to the configuration, even if they have been renamed already, if
\fBkeep\fR
is not specified as the naming policy in the
\&.link
file\&. See
\fBsystemd.link\fR(5)
for a description of
\fINamePolicy=\fR\&.
.RE
.PP
\fBv241\fR
.RS 4
\fBMACAddressPolicy=persistent\fR
was extended to set MAC addresses based on the device name\&. Previously addresses were only based on the
\fIID_NET_NAME_*\fR
attributes, which meant that interface names would never be generated for virtual devices\&. Now a persistent address will be generated for most devices, including in particular bridges\&.
.sp
Note: when userspace does not set a MAC address for a bridge device, the kernel will initially assign a random address, and then change it when the first device is enslaved to the bridge\&. With this naming policy change, bridges get a persistent MAC address based on the bridge name instead of the first enslaved device\&.
.RE
.PP
\fBv243\fR
.RS 4
Support for renaming netdevsim (simulated networking) devices was added\&. Previously those devices were not renamed\&.
.sp
Previously two\-letter interface type prefix was prepended to
\fIID_NET_LABEL_ONBOARD=\fR\&. This is not done anymore\&.
.RE
.PP
\fBv245\fR
.RS 4
When
\fBsystemd-nspawn\fR(1)
derives the name for the host side of the network interface created with
\fB\-\-network\-veth\fR
from the container name it previously simply truncated the result at 15 characters if longer (since that\*(Aqs the maximum length for network interface names)\&. From now on, for any interface name that would be longer than 15 characters the last 4 characters are set to a 24bit hash value of the full interface name\&. This way network interface name collisions between multiple similarly named containers (who only differ in container name suffix) should be less likely (but still possible, since the 24bit hash value is very small)\&.
.RE
.PP
\fBv247\fR
.RS 4
When a PCI slot is associated with a PCI bridge that has multiple child network controllers, the same value of the
\fIID_NET_NAME_SLOT\fR
property might be derived for those controllers\&. This would cause a naming conflict if the property is selected as the device name\&. Now, we detect this situation and don\*(Aqt produce the
\fIID_NET_NAME_SLOT\fR
property\&.
.RE
.PP
\fBv249\fR
.RS 4
PCI hotplug slot names for the s390 PCI driver are a hexadecimal representation of the
function_id
device attribute\&. This attribute is now used to build the
\fIID_NET_NAME_SLOT\fR\&. Before that, all slot names were parsed as decimal numbers, which could either result in an incorrect value of the
\fIID_NET_NAME_SLOT\fR
property or none at all\&.
.sp
Some firmware and hypervisor implementations report unreasonably high numbers for the on\-board index\&. To prevent the generation of bogus onbard interface names, index numbers greater than 16381 (2\(S1⁴\-1) were ignored\&. For s390 PCI devices index values up to 65535 (2\(S1⁶\-1) are valid\&. To account for that, the limit was increased to 65535\&.
.sp
The udev rule
\fINAME=\fR
replaces
":",
"/", and
"%"
with an underscore ("_"), and refuses strings which contain only numerics\&.
.RE
.PP
\fBv250\fR
.RS 4
Added naming scheme for Xen netfront "vif" interfaces based on the guest side VIF number set from the Xen config (or the interface index in AWS EC2)\&.
.RE
.PP
\fBv251\fR
.RS 4
Since version
\fBv247\fR
we no longer set
\fIID_NET_NAME_SLOT\fR
if we detect that a PCI device associated with a slot is a PCI bridge as that would create naming conflict when there are more child devices on that bridge\&. Now, this is relaxed and we will use slot information to generate the name based on it but only if the PCI device has multiple functions\&. This is safe because distinct function number is a part of the device name for multifunction devices\&.
.RE
.PP
\fBv252\fR
.RS 4
Added naming scheme for platform devices with devicetree aliases\&.
.RE
.PP
\fBv253\fR
.RS 4
Set
\fIID_NET_NAME_PATH\fR
for usb devices not connected via a PCI bus\&.
.RE
.PP
\fBv254\fR
.RS 4
Naming was changed for SR\-IOV virtual device representors\&.
.sp
The
"r\fIslot\fR"
suffix was added to differentiate SR\-IOV virtual device representors attached to a single physical device interface\&.
.RE
.PP
Note that
\fBlatest\fR
may be used to denote the latest scheme known (to this particular version of systemd)\&.
.SH "EXAMPLES"
.PP
\fBExample\ \&1.\ \&Using udevadm test\-builtin to display device properties\fR
.sp
.if n \{\
.RS 4
.\}
.nf
$ udevadm test\-builtin net_id /sys/class/net/enp0s31f6
\&.\&.\&.
Using default interface naming scheme \*(Aqv243\*(Aq\&.
ID_NET_NAMING_SCHEME=v243
ID_NET_NAME_MAC=enx54ee75cb1dc0
ID_OUI_FROM_DATABASE=Wistron InfoComm(Kunshan)Co\&.,Ltd\&.
ID_NET_NAME_PATH=enp0s31f6
\&.\&.\&.
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&2.\ \&PCI Ethernet card with firmware index "1"\fR
.sp
.if n \{\
.RS 4
.\}
.nf
ID_NET_NAME_ONBOARD=eno1
ID_NET_NAME_ONBOARD_LABEL=Ethernet Port 1
      
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&3.\ \&PCI Ethernet card in hotplug slot with firmware index number\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /sys/devices/pci0000:00/0000:00:1c\&.3/0000:05:00\&.0/net/ens1
ID_NET_NAME_MAC=enx000000000466
ID_NET_NAME_PATH=enp5s0
ID_NET_NAME_SLOT=ens1
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&4.\ \&PCI Ethernet multi\-function card with 2 ports\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /sys/devices/pci0000:00/0000:00:1c\&.0/0000:02:00\&.0/net/enp2s0f0
ID_NET_NAME_MAC=enx78e7d1ea46da
ID_NET_NAME_PATH=enp2s0f0

# /sys/devices/pci0000:00/0000:00:1c\&.0/0000:02:00\&.1/net/enp2s0f1
ID_NET_NAME_MAC=enx78e7d1ea46dc
ID_NET_NAME_PATH=enp2s0f1
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&5.\ \&PCI WLAN card\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /sys/devices/pci0000:00/0000:00:1c\&.1/0000:03:00\&.0/net/wlp3s0
ID_NET_NAME_MAC=wlx0024d7e31130
ID_NET_NAME_PATH=wlp3s0
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&6.\ \&PCI IB host adapter with 2 ports\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /sys/devices/pci0000:00/0000:00:03\&.0/0000:15:00\&.0/net/ibp21s0f0
ID_NET_NAME_PATH=ibp21s0f0

# /sys/devices/pci0000:00/0000:00:03\&.0/0000:15:00\&.1/net/ibp21s0f1
ID_NET_NAME_PATH=ibp21s0f1
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&7.\ \&USB built\-in 3G modem\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /sys/devices/pci0000:00/0000:00:1d\&.0/usb2/2\-1/2\-1\&.4/2\-1\&.4:1\&.6/net/wwp0s29u1u4i6
ID_NET_NAME_MAC=wwx028037ec0200
ID_NET_NAME_PATH=wwp0s29u1u4i6
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&8.\ \&USB Android phone\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /sys/devices/pci0000:00/0000:00:1d\&.0/usb2/2\-1/2\-1\&.2/2\-1\&.2:1\&.0/net/enp0s29u1u2
ID_NET_NAME_MAC=enxd626b3450fb5
ID_NET_NAME_PATH=enp0s29u1u2
.fi
.if n \{\
.RE
.\}
.PP
\fBExample\ \&9.\ \&s390 grouped CCW interface\fR
.sp
.if n \{\
.RS 4
.\}
.nf
# /sys/devices/css0/0\&.0\&.0007/0\&.0\&.f5f0/group_device/net/encf5f0
ID_NET_NAME_MAC=enx026d3c00000a
ID_NET_NAME_PATH=encf5f0
.fi
.if n \{\
.RE
.\}
.SH "SEE ALSO"
.PP
\fBudev\fR(7),
\fBudevadm\fR(8),
\m[blue]\fBPredictable Network Interface Names\fR\m[]\&\s-2\u[1]\d\s+2,
\fBsystemd-nspawn\fR(1)
.SH "NOTES"
.IP " 1." 4
Predictable Network Interface Names
.RS 4
\%https://systemd.io/PREDICTABLE_INTERFACE_NAMES
.RE
